package com.xc.service;

import com.xc.pojo.Account;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AccountService extends UserDetailsService {
    /**
     * 添加用户
     * @param account
     * @return
     */
    int addAccount(Account account);

    /**
     * 查询用户
     * @param loginName
     * @return
     */
    Account queryAccountByName(String loginName);

    Account getAccountByName(String name);
}
